import service from "@/utils/request"
// 加入购物车
export const insertCartAPI = (data) => {
    return service.post(`/member/cart`, data)
}

//获取最新购物车列表
export const findNewCartListAPI = () => {
    return service.get(`/member/cart`)
}

//删除购物车接口
export const delCartAPI = (ids) => {
    return service.delete(`/member/cart`, { data: { ids } })
}
// export const delCartAPI = (ids) => {
//     return service({
//         url: '/member/cart',
//         method: 'DELETE',
//         data: {
//             ids
//         }
//     })
// }
//合并购物车
export const mergeCartAPI = (data) => {
    return service.post(`/member/cart/merge`, data)
}
